package com.sneakxy.cloudbase.platform.bean;

import lombok.Data;
import springfox.documentation.service.Contact;

@Data
public class SwaggerConfig {

	private String title;
	private String description;
	private String termsOfServiceUrl;
	private SwaggerContact contact;
	private String license;
	private String licenseUrl;
	private String version;

	public Contact toContact() {
		return getContact() != null ? getContact().toContact() : null;
	}
	
}
